package demo.pkg;

/**
 * @author ZhouWeiBo
 * @create 2022/6/7
 */
class Entity extends EntityInfo{
    private String name = "小王";
    private Integer age = 1;

    @Override
    public String toString() {
        return "Entity{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    @Override
    void saySomething() {
        System.out.println("我叫" + name + ",今年 "+age+" 岁。");
    }
}
